www.gusucode.com > 落叶冰点万能企业网站内容管理系统 V9.1 > 落叶冰点万能企业网站内容管理系统 V9.1\code\admin\adminLabel\D_chk_copy_custom_folder.asp
<% '************************************************************** ' 新动软网站管理系统 ' 官方网站: http://www.aspcpu.com ' 系统作者: 阮丁远(网名:天下程序) ' Copyright 新动软网站管理系统 版权所有 '************************************************************** %> <LINK href="../css.css" type=text/css rel=stylesheet> <% dir_set="../../" %> <!--#include file=../../inc/conn.asp--> <!--#include file=../../inc/Functionb.asp--> <!--#include file=../../inc/ajaxLIB.asp--> <!--#include file=../inc/checkadmin2.asp--> <!--#include file=../../inc/functionFiless.asp--> <% AJAXshowLoader() %> <% if find_dataw("qitashezhi123","0",7)<>"1" and qx_if_max=0 then response.redirect "../D_suodinguser.asp" end if %> <% set filea=new Cls_FSO if trim(request("fnm"))="" then %> <script language=javascript> alert("复制失败,必须填写 复制到哪"); self.location="D_admin_custom_label.asp?fpath=<%=request("fpath")%>"; </script> <% else if filea.ReportFolderStatus(server.mappath("../../Label/custom_Label/"&request("fnm")))=1 then %> <script language=javascript> alert("复制失败,因为目标路径 与已有文件夹重名"); self.location="D_admin_custom_label.asp?fpath=<%=request("fpath")%>"; </script> <% else ssss="/" if trim(request("fnm"))<>"" then if right(trim(request("fnm")),1)="/" then ssss="" else ssss="" end if '以下用来 支持 无限级 创建目录 call createfile("../../Label/custom_Label/"&request("fnm")&ssss&"test.asp","1111",true) call deletefile("../../Label/custom_Label/"&request("fnm")&ssss&"test.asp") set a=new Cls_FSO if a.CopyAFolder(server.mappath("../../Label/custom_Label/"&request("fpath")),server.mappath("../../Label/custom_Label/"&request("fnm")))=true then sssp=request("fnm") sssspq=split(sssp,"/") ooosss="" for iii=0 to ubound(sssspq)-2 ooosss=ooosss&sssspq(iii)&"/" next '=ooosss2 %> <script language=javascript> alert("复制成功"); self.location="D_admin_custom_label.asp?fpath=<%=ooosss%>"; </script> <% else %> <script language=javascript> alert("复制失败"); self.location="D_admin_custom_label.asp?fpath=<%=request("fpath")%>"; </script> <% end if end if end if AJAXcloseLoader() %>